#!/usr/bin/python

import os

v = os.listdir('./')

skipList = ['autogen.sh',  'clean.py',  'configure.ac',  'main.cpp',  'Makefile.am', 'ChangeLog', 'NEWS', 'README', 'AUTHORS']
for i in v:
	if not os.path.isdir(i):
		if i not in skipList: 
			if os.path.splitext(i)[1] != '.swp':
				os.remove(i)
